<ul>
    <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="oc-culture-picker" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">@Model.CurrentCulture.DisplayName</a>
        <div class="dropdown-menu" aria-labelledby="oc-culture-picker">
            @foreach (var culture in Model.SupportedCultures)
            {
                if (culture.Name != Model.CurrentCulture.Name)
                {
                    <a asp-route="RedirectToLocalizedContent"
                       asp-route-area="OrchardCore.ContentLocalization"
                       asp-route-targetCulture="@culture.Name"
                       asp-route-contentItemUrl="@Context.Request.Path.Value"
                       asp-route-queryStringValue="@Context.Request.QueryString.Value"
                       class="dropdown-item">@culture.DisplayName</a>
                }
            }
        </div>
    </li>
</ul>
